package com.company;

import com.array.Array;

public class Student {
    private String name;
    private Integer age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Student(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public static void main(String[] args) {
        Array<Student> students = new Array<>();
        students.addLast(new Student("向问天", 12));
        students.addLast(new Student("任我行", 12));
        students.addLast(new Student("人影音", 12));

        System.out.println(students);
    }
}
